--[[
    @desc: 
    author:{zcg}
    time:2019-07-26 24:08:04
    {paramdesc}
    @return:
]]
--require "MyDemo.Common.Behaviour"

--CubeTrigger = Behaviour:New()

--[[CubeTrigger = CubeWork:New(cls)
function CubeTrigger:New(cls)
    local self = {}
    setmetatable(self, cls)
    return self
end]]
--MyDemo.Game.CubeTrigger

CubeTrigger = CubeWork:New()
CubeTrigger.__index = CubeTrigger
--给CubeWork类实例化一个对象
function CubeTrigger.New(cls)
    local self = {}
    setmetatable(self, cls)
    return self
end
--[[
    function CubeTrigger:Awake()
        print("CubeTrigger:Awake", self, self.gameObject.name)
    end
    ]]
function CubeTrigger:OnTriggerEnter(other)
    print("enter:" .. other.gameobject.name)
end

function CubeTrigger:OnTriggerStay(other)
end

function CubeTrigger:OnTriggerExit(other)
end

return CubeTrigger
